<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>广告添加</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">

							<div class="form-group">
								<label class="col-sm-2 control-label">收费类型:</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" name="chargeType" value="0" checked/>试用版
									</label>
									<label class="radio-inline">
										<input type="radio" name="chargeType" value="1"/>按天收费
									</label>
									<label class="radio-inline">
										<input type="radio" name="chargeType" value="2"/>按年收费
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">标题:</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">详情:</label>
								<div class="col-sm-8">
									<input  type="text" id="details"  class="form-control" 
									      name="details"/>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">价格:</label>
								<div class="col-sm-8">
									<input id="price" name="price" class="form-control" type="number">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开户费:</label>
								<div class="col-sm-8">
									<input id="removePirce" name="removePirce" class="form-control" type="number">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">推荐人分佣(开户费):</label>
								<div class="col-sm-8">
									<input id="refReward" name="refReward" class="form-control" type="number">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">代理分佣(开户费):</label>
								<div class="col-sm-8">
									<input id="agentReward" name="agentReward" class="form-control" type="number">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">是否显示:</label>
								<div class="switch onoffswitch col-sm-1">
									<div class="onoffswitch">
										<input type="checkbox"  class="onoffswitch-checkbox" value="0" checked="" id="type" name="type">
										<label class="onoffswitch-label" for="type">
											<span class="onoffswitch-inner"></span>
											<span class="onoffswitch-switch"></span>
										</label>
									</div>
								</div>
							</div>

							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="mall/advert/include::footer"></div>
	<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/i18n/defaults-*.min.js"></script>
	<script type="text/javascript" src="/js/appjs/projectexp/add.js"></script>
	<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>

</html>
